/**
 * Created by zhaojing on 2017/10/27.
 */

$(function () {

    let $qqMenu = $('.js-qq-menu');
    let $qq = $('.js-qq');
    $qq.hover(function () {
        $qqMenu.fadeIn(500);
    },function () {
        $qqMenu.fadeOut()
    });
    $qq.click(() => {
        $qqMenu.toggle();
    });

    let $wechatMenu = $('.js-wechat-menu');
    let $wechat = $('.js-wechat');
    $wechat.hover(function () {
        $wechatMenu.fadeIn(500);
    },function () {
        $wechatMenu.fadeOut()
    });
    $wechat.click(() => {
        $wechatMenu.toggle();
        // $wechat.toggle(function () {
        //     $wechatMenu.fadeIn(500);
        // },function () {
        //     $wechatMenu.fadeOut()
        // });
    });
    let $support = $('#support-link');
    $support.click(() => {
        easemobim.bind({configId: "4834dfef-ec9d-4fa8-b992-3d6ee0aae586"});
    })
    // easemobim.bind({configId: "4834dfef-ec9d-4fa8-b992-3d6ee0aae586"})


});